package cn.bnjy.core;

import lombok.Getter;
import lombok.Setter;

/**
 * 描述：状态枚举类型
 *
 * @date: 2018/11/3 13:53
 * @author: chavin
 */

@Getter
public enum StatusEnum {

    SUCCESS(2000, "请求成功"),
    ERROR(2001, "请求失败"),
    SYSTEM_ERROR(7000, "系统错误"),
    SYSTEM_EXCEPTION(7001, "系统异常"),
    PARAM_NULL(8000, "参数不能为空"),
    PARAM_ERROR(8001, "参数不合法");

    @Setter
    private int code;
    @Setter
    private String message;

    StatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
